package io.github.cchenxi.crpc.core.consumer.http;

import io.github.cchenxi.crpc.core.api.RpcRequest;
import io.github.cchenxi.crpc.core.api.RpcResponse;

/**
 * HTTP 远程调用
 * Date: 2024-03-23
 *
 * @author chenxi
 */
public interface HttpInvoker {
    /**
     * 远程调用
     *
     * @param rpcRequest 请求
     * @param url URL
     * @return 返回值
     */
    RpcResponse<?> post(RpcRequest rpcRequest, String url);
}
